import request from "@/utils/request"

// 查询hotelDateDiscount列表
export function listHotelDateDiscount(query) {
  return request({
    url: "/hotelDateDiscount/list",
    method: "get",
    params: query
  })
}

// 分页查询hotelDateDiscount列表
export function listHotelDateDiscountByPage(query) {
  return request({
    url: "/hotelDateDiscount/page",
    method: "get",
    params: query
  })
}

// 查询hotelDateDiscount
export function getHotelDateDiscount(id) {
  return request({
    url: "/hotelDateDiscount/" + id,
    method: "get"
  })
}

// 新增hotelDateDiscount
export function addHotelDateDiscount(data) {
  return request({
    url: "/hotelDateDiscount",
    method: "post",
    data: data
  })
}

// 修改hotelDateDiscount
export function updateHotelDateDiscount(data) {
  return request({
    url: "/hotelDateDiscount",
    method: "put",
    data: data
  })
}

// 删除hotelDateDiscount
export function deleteHotelDateDiscount(id) {
  return request({
    url: "/hotelDateDiscount/delete/" + id,
    method: "delete"
  })
}
